package controller

import (
	"context"

	"github.com/fastknifes/usdt-pay/internal/http/common/router"

	api "github.com/fastknifes/usdt-pay/internal/http/api/interface/v1"
)

func init() {
	helloController := HelloController{}
	router.RegisterRouter(helloController.SayHello)
}

type HelloController struct{}

func (self *HelloController) SayHello(_ context.Context, req *api.HelloReq) (res *api.HelloRes, err error) {
	res = &api.HelloRes{
		Content: "hello word," + req.Name,
	}
	return
}

// func (self *HelloController) Test(_ context.Context, _ *api.HelloReq) (res *api.HelloRes, err error) {
// 	res = &api.HelloRes{
// 		Content: "hello test",
// 	}
// 	return
// }
